package ai.mspbots.service.task.message;

import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;

@Component
public class SendTask {

    private static final String QUEUE_NAME = "ms.apm.queue"; // 队列名称
    @Autowired
    private RabbitTemplate rabbitTemplate;

    public void sendRabbitMQ(String message) {
        rabbitTemplate.convertAndSend(QUEUE_NAME, message);
    }
}
